<?php


include_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");

$title = "Escuelas de escalada";

$content = elgg_view_title($title);

$content .= '<div class="elgg-col elgg-col-1of2"><div class="elgg-inner pvm prl">';
$content .= '<h2>Escuelas</h2>';
$content .= elgg_list_entities(array(
    'type' => 'object',
    'subtype' => 'escuela'
));

$content .= '</div></div>';

$content .= '<div class="elgg-col elgg-col-1of2"><div class="elgg-inner pvm">';
$content .= '<h2>Sectores</h2>';
$content .= elgg_list_entities(array(
    'type' => 'object',
    'subtype' => 'sector'
));
$content .= '</div></div>';


$sidebar = "Este es al contenido de la sidebar";

$body = elgg_view_layout('one_sidebar', array(
           'content' => $content,
           'sidebar' => $sidebar
        ));

    // draw the page
echo elgg_view_page("Escuelas de escalada", $body);



?>